package dto

import (
	"comm/selfreg"
	"core/class"
	"reflect"
)

type CommCenterDto struct {
	Id int64 `json:"id,string"                        gorm:"column:id;DEFAULT:0;not null;comment:主键;"`

	Name     string `json:"name"         validate:"required,max=50"gorm:"column:name;size:50;DEFAULT:'';not null;comment:名称;"`
	EndPoint string `json:"endPoint"     validate:"required,max=50"gorm:"column:end_point;size:50;DEFAULT:'';not null;comment:通讯地址;"`
	Memo     string `json:"memo"                             gorm:"column:memo;DEFAULT:'';not null;comment:备注;"`
}

func init() {

	var mcls = &CommCenterDto{}
	var m = &class.MyClass{
		Name:     "处理中心Dto",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  "",
		Type:     reflect.TypeOf(mcls),
	}
	selfreg.AddDto(m)
}
